#ifndef FARMERCARD_H
#define FARMERCARD_H

#include <QWidget>

namespace Ui {
class FarmerCard;
}

class FarmerCard : public QWidget
{
    Q_OBJECT

public:
    explicit FarmerCard(QWidget *parent = 0);
    ~FarmerCard();

    bool GetInfo(QByteArray &data, QByteArray &keyb, QByteArray &blk3, int &mode);
    void ShowDuKa(QByteArray &data);
    void Clear();

signals:
    void pbEvent(int e);

private slots:
    void on_btDuKa_clicked();

    void on_btXieKa_clicked();

private:
    bool GetSpecKeyB(QByteArray &keyb);
    void GetKeyB(QByteArray &keyb);

private:
    Ui::FarmerCard *ui;

public:
    QString statustip;
};

#endif // FARMERCARD_H
